package com.hrm.model.serviceimple;

import java.util.List;

import com.hrm.model.dao.MilitaryDAO;
import com.hrm.model.dto.insa.MilitaryDTO;
import com.hrm.model.service.MilitaryService;

public class MilitaryServiceImple implements MilitaryService {
	MilitaryDAO militaryDAO;

	public void setMilitaryDAO(MilitaryDAO militaryDAO) {
		this.militaryDAO = militaryDAO;
	}
	
	
	@Override
	public List<MilitaryDTO> getAllMilitary(MilitaryDTO dto) {
		return militaryDAO.getAllMilitary(dto);
	}


	@Override
	public boolean deleteMilitary(MilitaryDTO dto) {
		
		return militaryDAO.deleteMilitary(dto);
	}


	@Override
	public boolean insertMilitary(MilitaryDTO dto) {

		return militaryDAO.insertMilitary(dto);
	}


	@Override
	public boolean updateMilitary(MilitaryDTO dto) {

		return militaryDAO.updateMilitary(dto);
	}
	
}
